package com.example.shiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xyh
 * @description
 * @date 2021/4/2 10:01
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @RequiresPermissions("list")
    @RequestMapping("/list")
    public String getUserList(){
        return "userList";
    }
}
